package com.yff.bpmx.system.api.dto;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.yff.bpmx.common.core.domain.PageParam;
import com.yff.bpmx.common.core.utils.DateUtils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@ApiModel("用户分页 Request Dto")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SysUserPageReqDto extends PageParam {

	private static final long serialVersionUID = -4668054073425642613L;

	@ApiModelProperty(value = "用户账号", example = "yudao", notes = "模糊匹配")
    private String userName;

    @ApiModelProperty(value = "手机号码", example = "yudao", notes = "模糊匹配")
    private String phonenumber;

    @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类")
    private Integer status;

    @ApiModelProperty(value = "开始时间", example = "2020-10-24")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    private Date beginTime;

    @ApiModelProperty(value = "结束时间", example = "2020-10-24")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    private Date endTime;

    @ApiModelProperty(value = "部门编号", example = "1024", notes = "同时筛选子部门")
    private Long deptId;

}
